package com.zdw.demo.config.pay;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "wechat")
@Getter
@Setter
public class WechatConfig {

    // 绑定支付的APPID
    private String appId;

    // 商户号
    private String mchId;

    // 证书序列号
    private String certCode;

    // 证书路径
    private String certp12Path;
    private String certPath;
    private String keyPath;

    // API V3秘钥
    private String apiV3Key;

    // 微信支付回调地址
    private String wechatNotifyUrl;

    // 微信支付退款回调地址
    private String wechatRefundNotifyUrl;

    // 证书路径前缀
    private String resourceUrl;

    // 微信订单失效时间(单位:分钟)
    private Integer expireMinutes;


}